//
//  IntegralsCell.m
//  Shengzhuli
//
//  Created by FXGuo on 17/3/26.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "IntegralsCell.h"

@interface IntegralsCell()

@property (weak, nonatomic) IBOutlet UILabel *integralLab;

@end

@implementation IntegralsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setIntegral:(NSInteger)integral
{
    _integral = integral;
    self.integralLab.text = [NSString stringWithFormat:@"%zd个",integral];
}
- (IBAction)integralClick:(UIButton *)btn
{
    if (self.integralClick) {
        self.integralClick();
    }
}

@end
